﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CellarsEvent : MonoBehaviour {

    public AudioClip WallUpClip;
    private AudioSource audios;

    private void Start()
    {
        audios = Camera.main.GetComponent<AudioSource>();
    }

    void BeginMusic()
    {
        audios.clip = WallUpClip;
        audios.Play();
        audios.loop = false;
    }

    void EndMusic()
    {
        audios.Stop();
    }
}
